package com.lry.jvm.classfile.constantpool;

import com.lry.jvm.classfile.ClassReader;

public class ConstantFloatInfo implements ConstantInfo {

    private float value;

    public ConstantFloatInfo(ClassReader reader) {
        value = reader.nextU4ToFloat();//u4
    }

    public float getValue() {
        return value;
    }

    @Override
    public String toString() {
        return "Float: " + value;
    }

}